package evs.identification;

import evs.brp.Requestor;

import java.util.Vector;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;                     

/**
 * proxy for namserver lookup remote object
 */
public class NameServerLookupProxy
	extends Requestor
	implements NameServerProxyInterface {

	private Log log = LogFactory.getLog(NameServerLookupProxy.class);


	
		
	public Object putEntry(String key1, String key2, Object object1) 
	throws evs.brp.RemotingErrorException {
		log.info("Invoking Requestor Method:\t" + "putEntry");
	
		Vector <Class >  argumentClazzes = new Vector<Class>();
	
		argumentClazzes.add(String.class);
	
		argumentClazzes.add(String.class);
	
		argumentClazzes.add(Object.class);
	
		Vector<String> argumentNames = new Vector<String>();
	
		argumentNames.add("key1");
	
		argumentNames.add("key2");
	
		argumentNames.add("object1");
	
		Vector<Object> arguments = new Vector<Object>();
	
		arguments.add(key1);
	
		arguments.add(key2);
	
		arguments.add(object1);
	

		Object object = this.invoke("evs.identification.NameServerLookup", "putEntry", 
			argumentClazzes, argumentNames, arguments, 
				Object.class);
		
		return (Object)object;

	}

		
	public Object getEntry(String key1, String key2) 
	throws evs.brp.RemotingErrorException {
		log.info("Invoking Requestor Method:\t" + "getEntry");
	
		Vector <Class >  argumentClazzes = new Vector<Class>();
	
		argumentClazzes.add(String.class);
	
		argumentClazzes.add(String.class);
	
		Vector<String> argumentNames = new Vector<String>();
	
		argumentNames.add("key1");
	
		argumentNames.add("key2");
	
		Vector<Object> arguments = new Vector<Object>();
	
		arguments.add(key1);
	
		arguments.add(key2);
	

		Object object = this.invoke("evs.identification.NameServerLookup", "getEntry", 
			argumentClazzes, argumentNames, arguments, 
				Object.class);
		
		return (Object)object;

	}
	
	
	
	public Object cleanup(String key1, String key2) 
	throws evs.brp.RemotingErrorException {
		log.info("Invoking Requestor Method:\t" + "cleanup");
	
		Vector <Class >  argumentClazzes = new Vector<Class>();
		argumentClazzes.add(String.class);
		argumentClazzes.add(String.class);
	
		Vector<String> argumentNames = new Vector<String>();
		argumentNames.add("key1");
		argumentNames.add("key2");
	
		Vector<Object> arguments = new Vector<Object>();
		arguments.add(key1);
		arguments.add(key2);
	
	

		Object object = this.invoke("evs.identification.NameServerLookup", "cleanup", 
			argumentClazzes, argumentNames, arguments, 
				Object.class);
		
		return (Object)object;

	}

	
 
}
